home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / zapem-0.000 / zapem-0 / zapem / starfield.h < prev    next >
C/C++ Source or Header  |  1995-06-03  |  459b  |  28 lines

  1. #ifndef STARFIELD_H
  2. #define STARFIELD_H
  3.  
  4. #include "screen.h"
  5. #include "point.h"
  6. const int NUMSTAR=10;
  7. const int NUMFIELD=6;
  8. const int MAXSPEED=4;
  9.  
  10. class
  11. StarField : public Screen
  12. {
  13. private:
  14.     pixel back[NUMSTAR][NUMFIELD];
  15.     point pos[NUMSTAR][NUMFIELD];
  16.     int speed[NUMSTAR][NUMFIELD];
  17.     int color[NUMFIELD];
  18. public:
  19.     StarField();
  20.         void update(void);
  21.     void move(void);
  22.         void replace(void);
  23.         void paste(void);
  24.     void getBack(void);
  25. };
  26.  
  27. #endif
  28.